<template>
    <div>
        <el-table :data="tableData" style="width: 100%">
            <el-table-column prop="id" label="id" width="70"/>
            <el-table-column prop="time" label="创建时间" width="100"/>
            <el-table-column prop="state" label="状态" width="100"/>
            <el-table-column prop="title" label="标题" width="300"/>

        <el-table-column fixed="right" label="操作" width="300">
            <template slot-scope="scope">
                <el-button @click="handleClick(scope.row)" type="text" size="small">查看</el-button>
                <el-button type="text" size="small">修改</el-button>
                <el-button type="text" size="small">申请置顶</el-button>
                <el-button type="text" size="small">申请锁定</el-button>
                <el-button type="text" size="small">申请加精</el-button>
            </template>
        </el-table-column>
        </el-table>
    </div>
</template>

<script>
    export default {
        name: "show",
        data(){
            return{
                tableData: [{
                    id:1,
                    time: '2016-05-02',
                    state: '王小虎',
                    title: '上海市普陀区金沙江路 1518 弄'
                }]
            }
        },
        methods: {
            handleClick(row) {
                console.log(row);
            }
        },
    }
</script>

<style scoped>

</style>
